// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios' 
import Vuex from 'vuex'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)
Vue.use(Vuex)
Vue.prototype.$ajax = axios

const store = new Vuex.Store({
	state: {
		currentCity: '广州'
	},
	mutations: {
		selectChange (state, Obj) {
			this.state.currentCity = Obj.currentCity
		}
	},
	actions: { 
	// 通过dispatch分发事件
	/*	increment () {
			alert(423)
		}
	*/
	}
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
